package com.cnpc.rightslogan.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import springfox.documentation.annotations.ApiIgnore;

/**
 * Create by shaojie on 2019/8/6
 */
@RestController
@RequestMapping("")
@ApiIgnore
public class LoginController {
    @GetMapping
    public ModelAndView login() {
        return new ModelAndView("/login.html");
    }

    @GetMapping("/successLogin")
    public ModelAndView loginSuccess() {
        return new ModelAndView("/successLogin.html");
    }

    @GetMapping("/user")
    public String getUsers() {
        return "Hello Spring Security";
    }
}